package com.itheima.polymorpic.practice02;

public class Test2Polymorphic {
    public static void main(String[] args) {
        Fu fu = new Zi();
        fu.method();
        System.out.println(fu.num);
    }
}

class Fu{
    int num = 10;

    public void method(){
    System.out.println("Fu...method");
}
}
class  Zi extends Fu{
    int num = 20;
    public  void method(){
        System.out.println("Zi...method");
    }
}